﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TestList.aspx.cs" Inherits="Guest_TestList" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head id="Head1" runat="server">
    <title>فهرست آزمایشات</title>
    <meta charset="utf-8">
    <link rel="icon" href="../App_Themes/Default/images/favicon.ico" type="image/x-icon">
    <link rel="shortcut icon" href="../App_Themes/Default/images/favicon.ico" type="image/x-icon" />
    <meta name="description" content="Your description">
    <meta name="keywords" content="Your keywords">
    <meta name="author" content="Fatehem Ramezani-fatemeh-ramezani.ir">
    <link href="../App_Themes/Default/css/B_Yekan.css" rel="stylesheet" type="text/css" />
    <link href="../App_Themes/Default/css/bootstrap.css" rel="stylesheet" type="text/css" />
    <link href="../App_Themes/Default/css/responsive.css" rel="stylesheet" type="text/css" />
    <link href="../App_Themes/Default/css/style.css" rel="stylesheet" type="text/css" />
    <link href="../App_Themes/Default/css/touchTouch.css" rel="stylesheet" type="text/css" />
    <link href="../App_Themes/Default/css/kwicks-slider.css" rel="stylesheet" type="text/css" />
    <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,300' rel='stylesheet'
        type='text/css"' />
    <script src="../App_Themes/Default/js/jquery.js" type="text/javascript"></script>
    <script src="../App_Themes/Default/js/superfish.js" type="text/javascript"></script>
    <script src="../App_Themes/Default/js/jquery.easing.1.3.js" type="text/javascript"></script>
    <script src="../App_Themes/Default/js/jquery.cookie.js" type="text/javascript"></script>
    <script src="../App_Themes/Default/js/touchTouch.jquery.js" type="text/javascript"></script>
    <script type="text/javascript">
        if ($(window).width() > 1024) { document.write("<" + "script src='../App_Themes/Default/js/jquery.preloader.js'></" + "script>"); }
    </script>
    <script>
        jQuery(window).load(function () {
            $x = $(window).width();
            if ($x > 1024) {
                jQuery("#content .row").preloader();
            }

            jQuery('.magnifier').touchTouch();
            jQuery('.spinner').animate({ 'opacity': 0 }, 1000, 'easeOutCubic', function () { jQuery(this).css('display', 'none') });
        }); 
				
    </script>
    <!--[if lt IE 8]>
  		<div style='text-align:center'><a href="http://www.microsoft.com/windows/internet-explorer/default.aspx?ocid=ie6_countdown_bannercode"><img src="http://www.theie6countdown.com/img/upgrade.jpg"border="0"alt=""/></a></div>  
 	<![endif]-->
    <!--[if (gt IE 9)|!(IE)]><!-->
    <!--<![endif]-->
    <!--[if lt IE 9]>
    <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <link rel="stylesheet" type="text/css" href="../App_Themes/Default/css/docs.css" />
    <link rel="stylesheet" type="text/css" href="../App_Themes/Default/css/ie.css" />
    <link href='http://fonts.googleapis.com/css?family=Open+Sans:300' rel='stylesheet' type='text/css'>
    <link href='http://fonts.googleapis.com/css?family=Open+Sans:400' rel='stylesheet' type='text/css'>
  <![endif]-->
</head>
<body dir="rtl">
    <form id="Form2" runat="server">
    <div class="spinner">
    </div>
    <!--============================== header =================================-->
    <header>     
          <div class="container clearfix">
                <div class="row">
                      <div class="span12">
                        <div class="navbar navbar_">
                            <div class="container">                          
                                <h1 class="brand brand_">
                                    <a href="../Default.aspx">
                                     <img src="../App_Themes/Default/images/Logo.png" />
                                    </a>
                                </h1>                                                                                     
                                <div class="nav-collapse nav-collapse_  collapse">
                                      <ul class="nav sf-menu">
                                            <li><a href="AboutUs.aspx">درباره ما</a> </li> 
                                            <li><a href="../Login.aspx">ورود و جواب دهی</a></li>                           
                                            <li><a href="Help.aspx">راهنمای پذیرش</a></li>
                                            <li  class="active"><a href="Gallery.aspx">گالری</a> </li>
                                            <li><a href="Paper.aspx">مقالات</a> </li>
                                            <li><a href="TestList.aspx">فهرست آزمایشات</a> </li>                                                  
                                            <li><a href="../Default.aspx">صفحه اصلی</a></li>   
                                      </ul>
                                </div>
                          </div>
                        </div>
                  </div>
               </div>
        </div>
    </header>
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>   
    <div class="bg-content">
        <!--============================== content =================================-->
        <div id="content">
            <div class="ic">
            </div>
            <div class="container">
                <div class="row">
                    <article class="span12">
                     <h3>فهرست آزمایشات</h3>
                    </article>
                    <div class="clear">
                    </div>
                    <div align="center">
                        <telerik:RadGrid ID="TestRadGrid" runat="server" CellSpacing="0" DataSourceID="TestEntityDataSource"
                            GridLines="None" AllowFilteringByColumn="True" Height="325px" ShowGroupPanel="True"
                            Width="710px" Skin="Black" AutoGenerateColumns="False" Font-Names="Tahoma"
                            AllowSorting="True">
                            <SortingSettings SortedAscToolTip="افزایشی" SortedDescToolTip="کاهشی" SortToolTip="برای مرتب سازی انتخاب کنید" />
                            <ClientSettings AllowDragToGroup="True">
                                <Scrolling AllowScroll="True" UseStaticHeaders="True" />
                            </ClientSettings>
                            <MasterTableView DataSourceID="TestEntityDataSource" Dir="RTL" DataKeyNames="CategoryItemID">
                                <NoRecordsTemplate>
                                    آزمایشی وجود ندارد
                                </NoRecordsTemplate>
                                <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
                                <RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
                                    <HeaderStyle Width="20px"></HeaderStyle>
                                </RowIndicatorColumn>
                                <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
                                    <HeaderStyle Width="20px"></HeaderStyle>
                                </ExpandCollapseColumn>
                                <GroupByExpressions>
                                    <telerik:GridGroupByExpression>
                                        <GroupByFields>
                                            <telerik:GridGroupByField FieldAlias="CategoryTitle" FieldName="CategoryTitle" FormatString=""
                                                HeaderText="گروه" />
                                        </GroupByFields>
                                    </telerik:GridGroupByExpression>
                                </GroupByExpressions>
                                <Columns>
                                    <telerik:GridBoundColumn DataField="CategoryTitle" FilterControlAltText="Filter CategoryTitle column"
                                        HeaderText="عنوان گروه" SortExpression="CategoryTitle" UniqueName="CategoryTitle">
                                        <ItemStyle Font-Italic="False" Font-Names="Tahoma" HorizontalAlign="Right" VerticalAlign="Middle"
                                            Width="200px" />
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="CategoryItemTitle" FilterControlAltText="Filter column column"
                                        HeaderText="عنوان آزمایش" UniqueName="CategoryItemTitle">
                                        <ItemStyle Font-Italic="False" Font-Names="Tahoma" HorizontalAlign="Right" VerticalAlign="Middle"
                                            Width="310px" />
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="Description" FilterControlAltText="Filter Description column"
                                        HeaderText="توضیحات" SortExpression="Description" UniqueName="Description">
                                        <ItemStyle Font-Italic="False" Font-Names="Tahoma" HorizontalAlign="Right" VerticalAlign="Middle"
                                            Width="200px" />
                                    </telerik:GridBoundColumn>
                                </Columns>
                                <EditFormSettings>
                                    <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                                    </EditColumn>
                                </EditFormSettings>
                            </MasterTableView>
                            <AlternatingItemStyle Font-Names="Tahoma" HorizontalAlign="Right" VerticalAlign="Middle" />
                            <GroupHeaderItemStyle Font-Names="Tahoma" HorizontalAlign="Center" VerticalAlign="Middle" />
                            <GroupPanel Text="عنصر گروه بندی را به این جا اضافه کنید" Font-Names="Tahoma">
                            </GroupPanel>
                            <HeaderStyle Font-Names="Tahoma" HorizontalAlign="Center" VerticalAlign="Middle" />
                            <FilterItemStyle Font-Names="Tahoma" HorizontalAlign="Right" VerticalAlign="Middle" />
                            <ItemStyle Font-Names="Tahoma" />
                            <PagerStyle FirstPageToolTip="صفحه اول" HorizontalAlign="Center" LastPageToolTip="صفحه آخر"
                                NextPagesToolTip="صفحات بعدی" NextPageToolTip="صفحه بعدی" PageSizeLabelText="اندازه صفحه:"
                                PrevPagesToolTip="صفحات قبلی" PrevPageToolTip="صفحه قبلی" VerticalAlign="Middle" />
                            <FilterMenu EnableImageSprites="False" Font-Names="Tahoma">
                                <WebServiceSettings>
                                    <ODataSettings InitialContainerName="">
                                    </ODataSettings>
                                </WebServiceSettings>
                            </FilterMenu>
                            <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
                                <WebServiceSettings>
                                    <ODataSettings InitialContainerName="">
                                    </ODataSettings>
                                </WebServiceSettings>
                            </HeaderContextMenu>
                        </telerik:RadGrid>
                    </div>
                    <asp:EntityDataSource ID="TestEntityDataSource" runat="server" ConnectionString="name=DefaultEntityConnection"
                        DefaultContainerName="DefaultEntityConnection" CommandText="SELECT T2.CategoryTitle AS CategoryTitle, 
         T1.CategoryItemTitle AS CategoryItemTitle ,
         T1.CategoryItemID AS CategoryItemID , 
         T1.Description AS Description  
         FROM DefaultEntityConnection.CategoryItems AS T1
         INNER JOIN DefaultEntityConnection.Categories  AS T2 On T1.CategoryItemID = T2.CategoryID" EnableFlattening="False"
                        AutoGenerateOrderByClause="true">
                    </asp:EntityDataSource>
                </div>
        </div>
    </div>
    </div>
    <footer>
          <div class="container clearfix" style="text-align:center">  
             <div class="privacy pull-left" style="color:#000">Delta System Anahita <a href="http://www.Delta.com/" target="_blank" rel="nofollow">Delta.com</a></div>
          </div>
    </footer>
    </form>
</body>
</html>
